package br.fatec.ppi;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.EntityTransaction;
import javax.persistence.Persistence;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Camilo
 */
public class Principal {
    public static void main(String[] args){
    
        EntityManagerFactory fabricaMotores =
            Persistence.createEntityManagerFactory("escolaFatec");
        
        EntityManager motor =
                fabricaMotores.createEntityManager();
        EntityTransaction transacao;
        transacao = motor.getTransaction();
        
        transacao.begin();
        
        transacao.commit();
        
        
    
    }
    
}
